package home.study.xxy.bs.entity;

/**
 * @author xiaoxiangyu
 * @create 2022-05-17 19:23
 * @功能： 状态码 枚举
 */
public enum CodeEnum {

    //200  成功
    // 400 ~ 501 失败

    REQUEST_CODE_SUCCESS("200","成功"),
    REQUEST_CODE_FAIL("400","失败"),
    REQUEST_CODE_NULL("404","资源未找到"),
    REQUEST_CODE_SERVER_FAIL("500","服务器错误"),

    REQUEST_CODE_LOGIN_SUCCESS("200","登录成功"),
    REQUEST_CODE_LOGIN_FAIL("400","登录失败"),

    REQUEST_CODE_ACCESS_FAIL("401","权限不足"),
    REQUEST_CODE_AUTHEN_FAIL("402","验证错误"),


    ;
    public String code;
    public String message;


    CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
